    import http from '@/utils/http.js'
    // 任务一级页面
    export const getTaskCountApi = () => {
      return http({
        method:'get',
        url:`/mission/getCount`
      })
    }
    // 任务二级页面
    export const getTaskDetailApi = (id) => {
      return http({
        method:'get',
        url:`/mission/detail?id=${id}`,
      })
    }
    // 任务二级页面
    export const postTaskListApi = (data) => {
      return http({
        method:'POST',
        url:'/mission/list',
        data,
      })
    }
    //任务三级页面--完成上报
    export const addTaskReportApi = (data) => {
      return http({
        method:'POST',
        url:`/agriculture/add`,
        data
      })
    }
    // 任务二级页面添加任务
    export const addTaskDetailApi = (data) => {
      return http({
        method:'POST',
        url:`/mission/add`,
        data
      })
    }
    // 任务三级页面--添加农资农机/agriculture/add
    export const addAgricultureApi = (data) => {
      return http({
        method:'POST',
        url:`/agriculture/add`,
        data
      })
    }
    
    // 任务三级页面--添加农资农机/agriculture/add
    export const upDataAgricultureApi = (data) => {
      return http({
        method:'patch',
        url:`/agriculture/updateById`,
        data
      })
    }
    
    
   